package com.chen.rabbit;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @decription:创建RabbitMQ的配置类
 * @atuhor:陈红卫
 * @create : 2017-06-20-10:14
 */
@Configuration
public class RabbitConfig {


    @Bean
    public Queue helloQueue(){
        return new Queue("hello");
    }
}
